using System;
using Ferpect.ComponentModel;
using Microsoft.Xna.Framework;

namespace $safeprojectname$
{
    static class Program
    {
        private class HiDefGame : Game
        {
            private GraphicsDeviceManager graphicsDeviceManager;
            public HiDefGame()
            {
                this.graphicsDeviceManager = new GraphicsDeviceManager(this);
                this.Content.RootDirectory = "Content";
            }
        }

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        public static void Main(string[] args)
        {
            using (Game game = new HiDefGame())
            {
                GameLoop gameLoop = new GameLoop(game);

                game.Services.AddService(typeof(IGameLoop), gameLoop);

                ScreenManager screenManager = new ScreenManager1();
                gameLoop.AddComponent(screenManager);

                game.Run();

                GC.KeepAlive(game);
            }
        }
    }
}

